﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MubiSDK.LoggingLib.Core.Interface
{
    /// <summary>
    /// 定义日志落地方向的抽象接口
    /// </summary>
    public interface ILogSink
    {
        /// <summary>
        /// <para>将格式化后的日志消息写入目标</para>
        /// <para>实现者应确保每条日志记录以换行符结束</para>
        /// </summary>
        /// <param name="formattedMessage">已格式化的日志消息(不含换行符)</param>
        void Write(string formattedMessage);
    }
}
